home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriter--Chooser snooper / CommonDefines.h < prev    next >
Encoding:
Text File  |  1996-03-20  |  2.2 KB  |  67 lines  |  [TEXT/MPS ]

  1. /*
  2.     copyright © 1992-1994 Apple Computer Inc.  All rights reserved.
  3.     
  4.     CommonDefines.h
  5.     This file defines values used by more than one .r or .h file.
  6.     
  7.     Modification history
  8.  
  9.      8/26/94        dmh                Sync'd with the shipping 1.0.1 GX driver.
  10.     12/20/93        dmh                Sync'd with the shipping 1.0b3 GX driver.
  11.      7/23/92        TED                New file today
  12.     
  13. */
  14.  
  15. // driver info
  16. #define DriverName        "ImageWriter"
  17. #define DriverType         'pdvr'
  18. #define DriverCreator     'scI2'
  19.  
  20. // code segment info
  21. #define DriverSegType    DriverType
  22. #define NewSegID        0
  23. #define OldSegID        1
  24.  
  25. // resource IDs for STR#s
  26. #define    kFormatModeFontsID                gxPrintingDriverBaseID        // List of "native" mode fonts supported
  27. #define    kFormatModeStylesID                (gxPrintingDriverBaseID + 1)    //    List of "well" known styles that are supported
  28. #define kOldQualityID                    (gxPrintingDriverBaseID + 2)
  29. #define kNewQualityID                    (gxPrintingDriverBaseID + 3)
  30. #define    kBoldStyle                        1                            //    Index into kFormatModeStylesID 'STR#' of the bold style string
  31. #define    kUnderlineStyle                    2                            //    Index into kFormatModeStylesID 'STR#' of the underline style string
  32. #define kBestString                        1
  33. #define kRoughString                    2
  34.  
  35.  
  36. // status information
  37. #define kDriverStatus        gxPrintingDriverBaseID    // stat resource ID
  38. #define kSendingData        1                        // item number for sending data
  39. #define kCheckOnline        2                        // item number for printer offline
  40.  
  41. // options, placed into the job collection
  42. #define kSuperRes            0x1                // highest res possible (160X144, 80X72)
  43.  
  44.  
  45. // do the following only if we aren't running in Rez
  46. #ifndef REZ
  47.  
  48. #define kNoPackagingOptions    0
  49. #define kDoSmallLineFeeds    0x1
  50.  
  51. // own own global storage
  52. typedef struct
  53.     {
  54.     long    leftMargin;            // margin at left edge of page
  55.     long    lineFeeds;            // accumulated lines feeds
  56.     long    packagingOptions;    // controls packaging and escape generation
  57.     ResType    commType;            // type of communications
  58.     Handle     draftTable;            // table for driving draft output, nil when not loaded
  59.     Boolean    isImageWriterII;    // is this an ImageWriter II?
  60.     Boolean idleQuery;            // is it time to query during idles?
  61.     OSErr    idleError;            // error to return from the next idle
  62.     long    idleTimeout;        // timeout on idles for the query
  63.     Boolean    timeoutPending;        // timeout is pending
  64.     } SpecGlobals, *SpecGlobalsPtr, **SpecGlobalsHdl;
  65.     
  66. #endif
  67.